<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="AIRAliases.js"></script>
</head>

<body>
<button onclick="makeNative()">Make a new window</button>
<script type="text/javascript">
function makeNative(){
	var options = new air.NativeWindowInitOptions();
	//options.systemChrome = "none";
	//options.transparent = true;
	//options.type = air.NativeWindowType.LIGHTWEIGHT;
	screens = air.Screen.screens;
	//alert(screens[0].bounds.bottom);
	
	var rect= new air.Rectangle(screens[0].bounds.right-200,screens[0].bounds.bottom-400-50,200,400);
	var popup = air.HTMLLoader.createRootWindow(true,options,false,rect);
	
	var page = air.File.applicationDirectory.resolvePath('hello.html');
	popup.load( new  air.URLRequest(page.url) );
}
</script>
</body>
</html>
